package org.uoss.webapp.framework.context;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public final class WebappServletContextLister implements ServletContextListener {

	@Override
	public void contextDestroyed(ServletContextEvent arg0) {
		WebappBeansContext.getContextInstance().destroy();
	}

	@Override
	public void contextInitialized(ServletContextEvent arg0) {
		WebappBeansContext.getContextInstance().setServletContext(arg0.getServletContext());
	}

}
